<%-- 
    Document   : signup
    Created on : 07 Apr 11, 8:55:36
    Author     : Dana
--%>

<%
    if (session.getAttribute("token")!=null) {
        response.sendRedirect("chat.jsp");
    }
%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <%@include file="head.jsp" %>
        <script type="text/javascript" src="scripts/signup.js"></script>
    </head>
    <body id="formbody">
        <div class="headerform">
            <img style="cursor: pointer" alt="logo75" src="designs/logo_75.png" />
        </div>
        <div class="contenthead">
            &nbsp;
        </div>
        <div class="contentmid">
            <div class="contentmidpayload">
                <div class="formwrapper">
                    <form id="registerform" action="signuphandler" method="post">

                        <div class="formtitle">
                            Sign Up
                        </div>
                        <div class="formfield">
                            Username <span class="usernameused" id="usernameused">&nbsp;</span>
                        </div>
                        <input type="text" class="forminputtext" id="username" name="username" onkeyup="validateUsernameUsed();" autofocus="autofocus" />
                        <div class="formfield">
                            Password
                        </div>
                        <input type="password" class="forminputtext" id="password" name="password" />
                        <div class="formfield">
                            Confirm Password
                        </div>
                        <input type="password" class="forminputtext" id="confirm" name="confirm" />
                        <div class="formfield">
                            Nama Lengkap
                        </div>
                        <input type="text" class="forminputtext" id="fullname" name="fullname" />
                        <div class="formfield">
                            Email
                        </div>
                        <input type="text" class="forminputtext" id="email" name="email" />
                        <div class="agree">
                            <input type="checkbox" id="agreed" name="agreedterms" style="vertical-align: sub">
                            Saya setuju bahwa tidak ada <a href="javascript:void()">Terms of Use</a> yang digunakan di website ini.
                        </div>
                        <div class="loadingatloginform" style="color: red;margin-top: 30px;" id="loadingatloginform">
                            &nbsp;
                        </div>
                        <!--input type="submit" id="register" onclick="submit();"-->
                        <div class="buttonwrapper">
                            <img alt="register button" class="registerbutton" onclick="submitForm();" src="designs/register_button.png" />
                        </div>
                    </form>
                </div>
                <div class="formpersuasion">
                    <div class="formpersuasionbig">
                        Nikmati Dahsyatnya Terserah<sup style="font-size: 8pt;">&reg;</sup>!
                    </div>
                    <div class="formpersuasionsub">
                        Dengan mendaftar di Terserah&reg;, Anda telah dapat menggunakan aplikasi spektakuler yang memudahkan Anda berkomunikasi.
                        Ngomong sesukamu kapan saja, di mana saja, dengan siapa saja!
                    </div>
                    <div class="logowrapperform">
                        <img alt="logo" src="designs/favicon.png" />
                    </div>
                </div>
            </div>
        </div>
        <div class="contentfoot">
            &nbsp;
        </div>
        <%@include file="footer.jsp" %>
    </body>
</html>
